package com.example.demo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("test")
@Api("测试业务接口")
public class TestController {


    @ResponseBody
    @RequestMapping("init")
    @ApiOperation("初始化接口")
    public String init(){
        return "Hello Spring boot";
    }
}
